package com.zpark;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class SpringBootClientApplication {

    public static void main(String[] args) {

        SpringApplication.run(SpringBootClientApplication.class, args);
    }
    /**
     * 启动时将resTemplate注入到spring容器当中去
     * @return
     */
    @Bean
    public RestTemplate getRestTemplate(){
        return new RestTemplate();

    }
}

